package cn.wolfcode.crm.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

@Getter@Setter
public class MemberInfo {
    private Long id;

    private String name;

    private String password;
    //会员卡号
    private String cardnumber;

    private String tel;
    //等级
    private String rankId;
    //积分
    private BigDecimal points;
    //余额
    private BigDecimal balance;

    private String address;

    private String email;
    //会员生日
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date memberbirthday;
    //性别
    private boolean gender;
    //总消费
    private BigDecimal consumption;
    //开卡时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date date;
    //会员折扣
    private BigDecimal cutoff;
    //状态
    private boolean state;
    //充值总额
    private BigDecimal chargeTotalAmount;
    //充值次数
    private Long consumeNumber;





}